<!--#include file="conn.asp"-->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>管理员登入</title>
<link href="style.css" rel="stylesheet" type="text/css" />
<style>
.theinput {width:200px;height:20px;border:1px solid #cccccc;padding:1px 4px}
.theinputCheckCode {width:60px;height:20px;border:1px solid #cccccc;padding:1px 4px}
.KeyBoardBtn {width:25px; height:18px; background:url(images/Keyboard.gif); border:0; cursor:pointer}
.loginTitle{padding:8px 20px; letter-spacing:1em; font-weight:bold; font-size:14px}
.CopyRight,.CopyRight a{color:#999999}
</style>
<script language="JavaScript" src="Keyboard.js"></script>
<script language=javascript>
function SetFocus(){
	if (document.Login.UserName.value=="")
		document.Login.UserName.focus();
	else
		document.Login.UserName.select();
}
function CheckForm(){
	if(document.Login.UserName.value==""){
		alert("请输入用户名！");
		document.Login.UserName.focus();
		return false;
	}
	if(document.Login.PassWord.value == ""){
		alert("请输入密码！");
		document.Login.PassWord.focus();
		return false;
	}
	if (document.Login.CheckCode.value==""){
       alert ("请输入您的验证码！");
       document.Login.CheckCode.focus();
       return(false);
    }
}
</script>
</head>
<body>
<form name="Login" action="ChkLogin.asp" method="post" target="_parent" onSubmit="return CheckForm();" autocomplete="off">
<table width="100%" height="100%" border="0" align="center" cellpadding="0" cellspacing="0" >
  <tr> 
    <td> 
		<table width="100%" border="0" cellspacing="0" cellpadding="0">
		  <tr>
			<td bgcolor="#efefef" style="padding:20px">
				<table width="450" border="0" align="center" cellpadding="4" cellspacing="0">
				  <tr>
				    <td colspan="2" class="loginTitle">网站后台管理系统</td>
				  </tr>
				  <tr> 
					<td width="30%" align="right">用户名称：</td>
					<td height="28">
					<input name="UserName"  type="text"  id="UserName" class="theinput" onFocus="this.select();">
					</td>
				  </tr>
				  <tr> 
					<td align="right">用户密码：</td>
					<td height="28">
					<input name="PassWord" type="password" id="PassWord" class="theinput" onFocus="this.select();">
					<input type="button"  onClick="checkKeyBoard(document.Login.PassWord,event)" class="KeyBoardBtn" value="" title="使用虚拟键盘输入">
					</td>
				  </tr>
				  <tr> 
					<td align="right">验 证 码：</td>
					<td height="28">
					<input name="CheckCode" class="theinputCheckCode" onFocus="this.select();"> <img src="./../include/checkcode.asp" style="cursor:pointer" title="点击换一张" onClick="this.src='./../include/checkcode.asp?rnd='+Math.random()" />
					</td>
				  </tr>
				  <tr> 
					<td height="30" colspan="2" align="center">
						<input type="submit" name="Submit" value=" 确  认 " class="button">
						&nbsp;&nbsp;&nbsp;
						<input name="reset" type="reset"  id="reset" value=" 清  除 " class="button">
					</td>
				  </tr>
				</table>
				<div class="CopyRight" align="right"><%=CopyRight%></div>			
			</td>
		  </tr>
		  <tr>
			<td height="80" >&nbsp;</td>
		  </tr>
		</table>
	</td>
  </tr>
</table>
</form>
<script language="javascript">setTimeout(function(){SetFocus()},1000)</script>
</body>
</html>